public class Text {
    public static int add(int a,int b){
        return a>b?a:b;
    }
    public static double add(double a,double b, double c){
       double max=a>b?a:b;
       return max >c?max:c;
    }

    public static void main(String[] args) {
        int a=add(4,5);
        System.out.println(a);
        double b=add(2.5,8.4,5.2);
        System.out.println(b);
    }
}
